<template>
  <div style="width:232px;">
      <div  style="width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;">
          <div style="padding-bottom: 2px;width: 20%;
    border-bottom: 2px solid #006f4e;color: #00704E;"><span style="display:block;transform: scale(0.83);transform-origin: left;white-space:nowrap;">比赛名称</span></div>
          <div style="padding-bottom: 2px;width: 78%;
    border-bottom: 2px solid #00cc83;
    display: flex;
    justify-content: space-evenly;color: #fff;text-align:center">
              <span style="flex:2;transform: scale(0.8);transform-origin: center;white-space:nowrap;">比赛场馆</span>
              <span style="flex:2.1;transform: scale(0.8);transform-origin: center;white-space:nowrap;">比赛日期</span>
              <span style="flex:2.5;transform: scale(0.8);transform-origin: center;white-space:nowrap;">开始结束时间</span>
          </div>
      </div>
      <div v-for="item in datalist" :key="item.id" style="width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;">
          <div  style="width: 20%;height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.384);color: #00704E;"><span style="display:block;transform: scale(0.8);transform-origin: left;">{{item.name}}</span></div>
          <div  style="width: 78%;
    justify-content: space-evenly;height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);color: #fff;text-align:center">
              <span style="flex: 2;transform: scale(0.83);transform-origin: center;">{{item.place}}</span>
              <span style="flex: 2.3;transform: scale(0.83);transform-origin: center;">{{item.date}}</span>
              <span style="flex: 2.5;transform: scale(0.83);transform-origin: center;">{{item.start_end_time}}</span>
          </div>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            datalist: [
                {
                    name: '开幕式',
                    place: '国家体育馆',
                    date: '2020-8-30 00:00:00',
                    start_end_time: '08:30:00 11:00:00',
                },
                {
                    name: '开幕式开幕式',
                    place: '国家体育馆',
                    date: '2020-8-30 00:00:00',
                    start_end_time: '08:30:00 11:00:00',
                },
                {
                    name: '开幕式开幕式',
                    place: '国家体育馆国家体',
                    date: '2020-8-30 00:00:00',
                    start_end_time: '08:30:00 11:00:00',
                },
            ]
        }
    }
}
</script>

<style>
/*
.topbar{
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.topbar > div{
    padding-bottom: 2px;
}
.topbar .name{
    width: 52px;
    border-bottom: 2px solid #006f4e;
}
.topbar .info{
    width: 246px;
    border-bottom: 2px solid #00cc83;
    display: flex;
    justify-content: space-evenly;
}
.item{
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.item > div{
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.384);
}
.item .name{
    width: 52px;
}
.item .info{
    width: 246px;
    display: flex;
    justify-content: space-evenly;
}
.name{
    color: #006F4E;
}
.info{
    color: #fff;
}
.info > span:nth-child(1){
    flex: 2;
    text-align: center;
}
.info > span:nth-child(2){
    flex: 2;
    text-align: center;
}
.info > span:nth-child(3){
    flex: 2;
    text-align: center;
}
*/
</style>